package com.springbootee.Common.base;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import springfox.documentation.annotations.ApiIgnore;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@Accessors(chain = true)
//实体类与JSON转换的时候，属性为NULL的不参与序列化
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode
@ApiIgnore
public class BaseEntityNoLogic implements Serializable {
        @TableField(fill = FieldFill.INSERT)
        @ApiModelProperty(value = "创建时间",position = 101)
        private Date createTime;

        @TableField(fill = FieldFill.INSERT)
        @ApiModelProperty(value = "创建人ID",position = 102)
        private Long createUserId;


        @ApiModelProperty(value = "更新时间",position = 103)
        @TableField(fill = FieldFill.INSERT)
        private Date updateTime;

        @TableField(fill = FieldFill.INSERT)
        @ApiModelProperty(value = "更新人ID",position = 104)
        private  Long updateUserId;
}
